package design.aopdemo.aop;

import org.aspectj.lang.annotation.*;
import org.springframework.core.annotation.Order;

@Order(1)
@Aspect
public class AopAspect3 {
    @Pointcut("execution(* design.aopdemo.controller.AopController.show(..))")
    public void print(){

    }
    @Before("print()")
    public void before(){
        System.out.println("before3------");
    }
    @After("print()")
    public void after(){
        System.out.println("after3------");
    }
    @AfterReturning("print()")
    public void afterReturning(){
        System.out.println("afterReturning3------");
    }
    @AfterThrowing("print()")
    public void afterThrowing(){
        System.out.println("afterThrowing3------");
    }
}
